﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Data;
using System.Xml.Serialization;
using Recomendaciones.Entidades;

/// <summary>
/// Descripción breve de LogErrorDTO
/// </summary>
public class LogErrorDTO
{
    public int Id { get; set; }

    public string Type { get; set; }

    public string Stack { get; set; }

    public string Message { get; set; }

    public string BaseException { get; set; }

    public string Source { get; set; }

    public DateTime DateTime { get; set; }

    public LogErrorDTO()
    {

    }

    public LogErrorDTO(LogError logErrorEnt)
    {
        if (logErrorEnt != null)
        {
            Id = logErrorEnt.Id;
            Type = logErrorEnt.Type;
            Stack = logErrorEnt.Stack;
            Message = logErrorEnt.Message;
            BaseException = logErrorEnt.BaseException;
            Source = logErrorEnt.Source;
            DateTime = logErrorEnt.DateTime;
        }
    }

}